package 笔试强训;

import java.util.Scanner;

public class 倒置字符串 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String string = scanner.nextLine();
        String[] strings = string.split(" ");
        for (int i = strings.length-1;i>=0;i--){
            System.out.print(strings[i]+" ");
        }
    }
}
